package org.dromara.myprogram.service;

import org.dromara.myprogram.domain.MyUnionlotto;
import org.dromara.myprogram.domain.vo.MyUnionlottoVo;
import org.dromara.myprogram.domain.bo.MyUnionlottoBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 双色球Service接口
 *
 * @author gjb
 * @date 2024-08-09
 */
public interface IMyUnionlottoService {

    /**
     * 查询双色球
     */
    MyUnionlottoVo queryById(Long id);

    /**
     * 查询双色球列表
     */
    TableDataInfo<MyUnionlottoVo> queryPageList(MyUnionlottoBo bo, PageQuery pageQuery);

    /**
     * 查询双色球列表
     */
    List<MyUnionlottoVo> queryList(MyUnionlottoBo bo);

    /**
     * 新增双色球
     */
    Boolean insertByBo(MyUnionlottoBo bo);

    /**
     * 修改双色球
     */
    Boolean updateByBo(MyUnionlottoBo bo);

    /**
     * 校验并批量删除双色球信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    int getUnionlottos();

    List<MyUnionlotto> findAllMyunionlottos();
}
